package com.home.homepage.feign.prefecture;

import com.eig.common.entity.course.EduCourse;
import com.eig.common.entity.course.EduSubject;
import com.eig.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ：YQ袁（2446806940@qq.com）
 * @date ：Created in 2022/12/8 18:17
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "education-course")
public interface Coures {

    @PostMapping("/core/subject/findsubject/{current}/{pageSize}")
    public Result findsubject(@PathVariable Integer current,
                              @PathVariable Integer pageSize,
                              @RequestBody EduSubject eduSubject);

   @PostMapping("/core/course/findCourse/{current}/{pageSize}")
   public Result findCourse(@PathVariable Integer current, @PathVariable Integer pageSize, @RequestBody EduCourse e);

    @PostMapping("/core/course/updateCourseById")
    public Result updateCourseById(@RequestBody EduCourse e);

}
